﻿using System;

/* 求0~200(含)所有个位数为5的数的和 */
namespace Practice2
{
    public class Practice
    {
        static int GetSumBySingleFive(int end)
        {
            int sum = 0;
            for (int i = 0; i <= end; i++)
            {
                if(i % 10 == 5)
                {
                    sum += i;
                }
            }
            return sum;
        }

        public static void Execute()
        {
            Console.WriteLine("请输入终止数: ");
            int sum = int.Parse(Console.ReadLine());
            Console.WriteLine("res: {0}", sum);
        }
    }
}